home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsisode80_tar.Z / vmsisode80_tar / sockit / gccinclude / machine / param.h
Encoding:
C/C++ Source or Header  |  1990-04-24  |  2.6 KB  |  87 lines

  1. /*
  2.  * @(#)param.h    1.7    (ULTRIX)    2/12/86
  3.  */
  4.  
  5. /************************************************************************
  6.  *                                    *
  7.  *            Copyright (c) 1983,86 by            *
  8.  *        Digital Equipment Corporation, Maynard, MA        *
  9.  *            All rights reserved.                *
  10.  *                                    *
  11.  *   This software is furnished under a license and may be used and    *
  12.  *   copied  only  in accordance with the terms of such license and    *
  13.  *   with the  inclusion  of  the  above  copyright  notice.   This    *
  14.  *   software  or  any  other copies thereof may not be provided or    *
  15.  *   otherwise made available to any other person.  No title to and    *
  16.  *   ownership of the software is hereby transferred.            *
  17.  *                                    *
  18.  *   This software is  derived  from  software  received  from  the    *
  19.  *   University    of   California,   Berkeley,   and   from   Bell    *
  20.  *   Laboratories.  Use, duplication, or disclosure is  subject  to    *
  21.  *   restrictions  under  license  agreements  with  University  of    *
  22.  *   California and with AT&T.                        *
  23.  *                                    *
  24.  *   The information in this software is subject to change  without    *
  25.  *   notice  and should not be construed as a commitment by Digital    *
  26.  *   Equipment Corporation.                        *
  27.  *                                    *
  28.  *   Digital assumes no responsibility for the use  or  reliability    *
  29.  *   of its software on equipment which is not supplied by Digital.    *
  30.  *                                    *
  31.  ************************************************************************/
  32.  
  33. /*-----------------------------------------------------------------------
  34.  *
  35.  * Modification History
  36.  *
  37.  * 12-Feb-86 -- jrs
  38.  *    Changed BASEPRI defn to handle new idle loop
  39.  *
  40.  *    Derived from 4.2 BSD labelled:
  41.  *        param.h    6.1    83/07/29
  42.  *
  43.  *-----------------------------------------------------------------------
  44.  */
  45.  
  46. /*
  47.  * Machine dependent constants for vax.
  48.  */
  49. #define    NBPG    512        /* bytes/page */
  50. #define    PGOFSET    (NBPG-1)    /* byte offset into page */
  51. #define    PGSHIFT    9        /* LOG2(NBPG) */
  52.  
  53. #define    CLSIZE        2
  54. #define    CLSIZELOG2    1
  55.  
  56. #define    SSIZE    4        /* initial stack size/NBPG */
  57. #define    SINCR    4        /* increment of stack/NBPG */
  58.  
  59. #define    UPAGES    14        /* pages of u-area */
  60. #define    NISP    5        /* pages of interrupt stack */
  61.  
  62. /*
  63.  * Some macros for units conversion
  64.  */
  65. /* Core clicks (512 bytes) to segments and vice versa */
  66. #define    ctos(x)    (x)
  67. #define    stoc(x)    (x)
  68.  
  69. /* Core clicks (512 bytes) to disk blocks */
  70. #define    ctod(x)    (x)
  71. #define    dtoc(x)    (x)
  72. #define    dtob(x)    ((x)<<9)
  73.  
  74. /* clicks to bytes */
  75. #define    ctob(x)    ((x)<<9)
  76.  
  77. /* bytes to clicks */
  78. #define    btoc(x)    ((((unsigned)(x)+511)>>9))
  79.  
  80. /*
  81.  * Macros to decode processor status word.
  82.  */
  83. #define    USERMODE(ps)    (((ps) & PSL_CURMOD) == PSL_CURMOD)
  84. #define    BASEPRI(ps)    (((ps) & PSL_IPL) <= PSL_IPL_LOW)
  85.  
  86. #define DELAY(n)    { microdelay(n); }
  87.